<%--
  Created by IntelliJ IDEA.
  User: liuxianan
  Date: 2021/7/20
  Time: 3:57 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>教师信息管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- bootstrap -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <%--    <link href="${pageContext.request.contextPath}/asserts/css/bootstrap.min.css" rel="stylesheet">--%>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Custom styles for this template -->
    <link href="${pageContext.request.contextPath}/asserts/css/dashboard.css" rel="stylesheet">


</head>
<body>




<div class="main">

    <div class="container">

        <div class="row clearfix">
            <div class="page-header">
                <h1>
                    <small>教师工资列表 —— 显示所有教师工资</small>
                </h1>
            </div>
        </div>

    </div>


    <div class="row iRight">
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/teacher/toAddTeacher">新增</a>
        </div>
        <div class="col-md-4 column">
            <a class="btn btn-primary" href="${pageContext.request.contextPath}/root/rootIndex">返回</a>
        </div>
    </div>

    <div class="row clearfix iRight">
        <div class="col-md-12 column">
            <table class="table table-hover table-striped">
                <thead>
                <tr>
                    <th>教师号</th>
                    <th>教师姓名</th>
                    <th>薪资</th>
                </tr>
                </thead>

                <tbody>
                <c:forEach var="teacher" items="${requestScope.get('list')}">
                    <tr>
                        <td>${teacher.getTid()}</td>
                        <td>${teacher.getTname()}</td>
                        <td>${teacher.getTsalary()}</td>
                        <td>
                            <a href="${pageContext.request.contextPath}/teacher/toUpdateTeacher?Tid=${teacher.getTid()}">更改</a> |
                            <a href="${pageContext.request.contextPath}/teacher/del/${teacher.getTid()}">删除</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>



</body>
</html>
